# -*- coding: utf-8 -*-
#
# File: Empresa.py
#
# Copyright (c) 2008 by TcheZope.org
# Generator: ArchGenXML Version 2.0-beta9
#            http://plone.org/products/archgenxml
#
# GNU General Public License (GPL)
#

__author__ = """Fabiano Weimar dos Santos <xiru@xiru.org>, Jean Rodrigo Ferri
<jeanrodrigoferri@yahoogroups.com>, Rafahela Bazzanella
<rafabazzanella@yahoo.com.br>"""
__docformat__ = 'plaintext'

from AccessControl import ClassSecurityInfo
from Products.Archetypes.atapi import *
from zope.interface import implements
import interfaces
from Products.PloneZopista.Perfil import Perfil
from Products.CMFDynamicViewFTI.browserdefault import BrowserDefaultMixin

from Products.PloneZopista.config import *

##code-section module-header #fill in your manual code here
##/code-section module-header

schema = Schema((

    StringField(
        name='ramo',
        widget=StringField._properties['widget'](
            description="Informe o ramo de atuacao da empresa.",
            label='Ramo',
            label_msgid='PloneZopista_label_ramo',
            description_msgid='PloneZopista_help_ramo',
            i18n_domain='PloneZopista',
        ),
        required=1,
    ),
    LinesField(
        name='servicos',
        widget=MultiSelectionWidget,
        enforceVocabulary=1,
        multiValued=1,
        vocabulary=VOCAB_SERVICOS,
    ),
    TextField(
        name='portfolio',
        widget=RichWidget(
            description="Informe os trabalhos desenvolvidos na plataforma Python/Zope/Plone.",
            label="Portifolio",
            label_msgid='PloneZopista_label_portfolio',
            description_msgid='PloneZopista_help_portfolio',
            i18n_domain='PloneZopista',
        ),
        required=1,
        searchable=1,
    ),
),
)

##code-section after-local-schema #fill in your manual code here
##/code-section after-local-schema

Empresa_schema = BaseSchema.copy() + \
    getattr(Perfil, 'schema', Schema(())).copy() + \
    schema.copy()

##code-section after-schema #fill in your manual code here
##/code-section after-schema

class Empresa(Perfil, BaseContent, BrowserDefaultMixin):
    """
    """
    security = ClassSecurityInfo()
    implements(interfaces.IEmpresa)

    meta_type = 'Empresa'
    _at_rename_after_creation = True

    schema = Empresa_schema

    ##code-section class-header #fill in your manual code here
    ##/code-section class-header

    # Methods


registerType(Empresa, PROJECTNAME)
# end of class Empresa

##code-section module-footer #fill in your manual code here
##/code-section module-footer



